package cn.edu.sdjzu.xg23.kcsj01_backend.mapper;

import cn.edu.sdjzu.xg23.kcsj01_backend.entity.Project;
import cn.edu.sdjzu.xg23.kcsj01_backend.entity.Reward;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RewardMapper {
    boolean insert(Reward reward);

    void update(Reward reward);

    List<Reward> selectRewardsByCondition(@Param("reward") Reward reward,
                                            @Param("employeeId") Long employeeId);
    boolean approveReward(Reward reward);
}
